﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EasierRdp.Util;

namespace EasierRdp.Models
{
    class RdpAllSessions : INode
    {
        private bool? _expanded;

        public string Name
        {
            get { return "All Sessions"; }
        }

        public bool Expanded
        {
            get { return _expanded ?? true; }
            set { _expanded = value; }
        }

        public IEnumerable<INode> Children
        {
            get
            {
                return RdpContext.Sessions.Values;
            }
        }
    }
}
